package com.abing.decorator;

public class AbstractDecorator extends GatewayComponent {

    private GatewayComponent gatewayComponent;
    public AbstractDecorator(GatewayComponent gatewayComponent) {
        this.gatewayComponent=gatewayComponent;
    }

    @Override
    public void service() {
        if (gatewayComponent!=null){
            gatewayComponent.service();
        }
    }
}
